package com.atguigu.encapsolation.one;

public class TestEmployee {
    public static void main(String[] args) {
        Employee e1 = new Employee();
        e1.setName("张三");
        e1.setSalary(15000);
        e1.setMarry(true);
        System.out.println("e1的姓名：" + e1.getName() +"，薪资：" + e1.getSalary() +"，婚否：" + e1.isMarry());

        Employee e2 = new Employee();
        e2.setName("李四");
        e2.setSalary(12000);
        e2.setMarry(false);
        System.out.println("e2的姓名：" + e2.getName() +"，薪资：" + e2.getSalary() +"，婚否：" + e2.isMarry());
    }
}
